function serializeToJson(form) {
    var result = {};
    //使用jquery提供的serializeArray()方法来获取表单值
    //值的格式为[{name:'表单名'，value:'表单值'}，{name:'表单名'，value:'表单值'}]
    var f = form.serializeArray();
    f.forEach(function(item) {
        // result.email
        result[item.name] = item.value;
    });
    return result;
}
console.log(111);